/**
 * Created by isoft-work 5 on 1/18/2015.
 */
$(document).ready(function(){
   var _user = $.session.get('userNameAdmin');
   if(!_user) {
      window.location = SERVER.contextPath  + '/jsp/admin/ad-login.jsp';
   }
   else {
      ISS.EVENT.bindEvent('#ad_log_out', 'click', function () {
         ISS.SESSION.setSession('userNameAdmin', '');
         window.location = SERVER.contextPath  + '/jsp/admin/ad-login.jsp';
      });
   }
});
